import { request, requestWithParams } from "../http/request";

// 图书分类
export const getAllBookType = () => request("/bookTypes/list", "get");

// 更新图书分类
export const updateBookType = (param: any) =>
  request("/bookTypes/update", "post", param);

//删除分类
export const deleteBookType = (param: any) =>
  request("/bookTypes/delete", "get", param);

//搜索分类
export const searchBookTypeByName = (param: any) =>
  request("/bookTypes/search", "get", param);
